Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Relevance Score in db.FTSearch
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always

Hi,

Can someone please help me understand how the relevance scores are calculated by db.FTSearch method. I need to understand the logic behind scores calculation.

As per my information, it depends on no. of occurences and Termweight or Proximity assigned in query and created date of the document, but not the exact logic behind it.

Search Method Used: database.FTSearch(query,0,8,8192);

Query used is: var query = '([Form=FormTemplate]) AND ((FIELD Frm_Title CONTAINS *'+@Trim(viewScope.query)+'* AND (TERMWEIGHT 500 '+viewScope.query+' OR TERMWEIGHT 430 *'+@Trim(viewScope.query)+'*)) OR (TERMWEIGHT 15 '+viewScope.query+' OR TERMWEIGHT 5 *'+@Trim(viewScope.query)+'*))'

I have been able to extract the relevance scores and for similar scores the documents are ordered based on created date. Recently created documents at the top.

I am using above query to search in Frm_Title field first and then in complete document, therefore tried assigning different weights. It works with correct order of the documents upto 90%, but still 10% documents are not in corrected order based on there relevant scores calculated by lotus notes.

So, I need to understand 2 things:

1. How the relevance scores are calculated?
2. Is there any way to improve above mentioned query so that it works for all the documents.

Any sort of help will be great, as I am stucked into this since a long now.

Regards,
Yashu


Feedback number WEBB8KTABX created by ~Jennifer Cishipiplopetsi on 08/17/2011

Status: Open
Comments:

Relevance Score in db.FTSearch (~Jennifer Cishi... 17.Aug.11)
. . I don't think it'll be easy (~Laura Bubtumiv... 17.Aug.11)
. . . . Thanks Peter....but scores logic st... (~Jennifer Cishi... 18.Aug.11)
. . . . . . Yes, I think it's... (~Laura Bubtumiv... 18.Aug.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS